package com.project.chat.pojo;

import com.project.chat.common.Role;

public class Person {

    private String name;
    //玩家默认为平民
    private int type = Role.PINGMIN.type;
    //词汇
    private String chiHui;

    public void setChiHui(String chiHui) {
        this.chiHui = chiHui;
    }

    public String getChiHui() {
        return chiHui;
    }

    public int getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Person(String name){
        this.name = name;
    }

    public Person(String name, int type){
        this.type = type;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", type=" + type +
                '}';
    }
}
